import request from '../utils/request'

// 获取未出库产品列表
export function getInStockProducts() {
  return request({
    url: '/api/product-shipping/in-stock',
    method: 'get'
  })
}

// 获取已出库产品列表
export function getShippedProducts() {
  return request({
    url: '/api/product-shipping/shipped',
    method: 'get'
  })
}

// 产品出库
export function shipProduct(id, data) {
  return request({
    url: `/api/product-shipping/${id}/ship`,
    method: 'post',
    data
  })
}

// 获取指定时间段内的出库记录
export function getShippingRecords(params) {
  return request({
    url: '/api/product-shipping/records',
    method: 'get',
    params
  })
} 